home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / environment_effects_scripts / environment_volcano_snow.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  11.9 KB  |  465 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_ENVIRONMENT_VOLCANO_SNOW)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  9. desc.LocalPosition = vzbzd1
  10. vzbzd1:delete()
  11. desc.isAnimateTexture = false
  12. desc.RenderType = ENRENDERTYPE_GEOMETRY
  13.  
  14. Emitter = desc.PS.PSDescription
  15. Emitter.ParticleTypesNumber = 3
  16. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  17. Emitter.EmitterPosition = vzbzd2
  18. vzbzd2:delete()
  19. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  20. Emitter.EmitterDirection = vzbzd3
  21. vzbzd3:delete()
  22. Emitter.EmitterLifeTime = 1
  23.  
  24. PT = Emitter.ParticleTypesParams[1]
  25. PT.IsEmitterLocked = false
  26. PT.DrawOrder = 1
  27. PT.Material = ENMAT_SIMPLEPARTICLE
  28.  
  29.  
  30. PT.TextureName = "environment_effect_volcano_snow1.dds"
  31.  
  32. PT.ParticlesPerSecond = 2000.0;
  33. PT.InitialNumberOfParticles = 0.0;
  34. PT.BaseLifeTime = 3.0;
  35. PT.BaseLifeTimeVariance = 0.8;
  36. PT.BaseSpeed = 15.0;
  37. PT.BaseSpeedVariance = 0.8;
  38.  
  39. PT.TangentSpeed = 5.0;
  40. PT.TangentSpeedVariance = 1.0;
  41. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,0.0)
  42. PT.TangentDirection = vzbzd4
  43. vzbzd4:delete()
  44. PT.TangentAngleMin = 0.0;
  45. PT.TangentAngleMax = 6.28;
  46. PT.IsTangentDependOnBase = false;
  47.  
  48. PT.BaseAngle = 3.0;
  49. PT.BaseAngleVariance = 2.0;
  50. PT.BaseAngleSpeed = 0.5;
  51. PT.BaseAngleSpeedVariance = 1.0;
  52. PT.BaseAngleSpeedDirection = 0;
  53. local vzbzd5 = D3DXVECTOR3:new(0.0,-1.0,0.0)
  54. PT.BaseDirection = vzbzd5
  55. vzbzd5:delete()
  56. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  57. PT.BaseDirectionVariance = vzbzd6
  58. vzbzd6:delete()
  59. local vzbzd7 = D3DXVECTOR3:new(0,-50,0)
  60. PT.BasePosition = vzbzd7
  61. vzbzd7:delete()
  62. local vzbzd8 = D3DXVECTOR3:new(775,50,775)
  63. PT.BasePositionVariance = vzbzd8
  64. vzbzd8:delete()
  65. PT.BaseSize = 2.0;
  66. PT.BaseSizeVariance = 0.8;
  67. PT.DirectionRelativeness = ENREL_WORLD
  68.  
  69. -- color over time
  70. PT.ColorOverTimeR[1].TimePercent = 0.0;
  71. PT.ColorOverTimeR[1].Value = 0.5;
  72. PT.ColorOverTimeG[1].TimePercent = 0.0;
  73. PT.ColorOverTimeG[1].Value = 0.5;
  74. PT.ColorOverTimeB[1].TimePercent = 0.0;
  75. PT.ColorOverTimeB[1].Value = 0.5;
  76.  
  77. PT.ColorOverTimeR[2].TimePercent = 0.1;
  78. PT.ColorOverTimeR[2].Value = 0.7;
  79. PT.ColorOverTimeG[2].TimePercent = 0.1;
  80. PT.ColorOverTimeG[2].Value = 0.7;
  81. PT.ColorOverTimeB[2].TimePercent = 0.1;
  82. PT.ColorOverTimeB[2].Value = 0.7;
  83.  
  84. PT.ColorOverTimeR[3].TimePercent = 0.3;
  85. PT.ColorOverTimeR[3].Value = 0.3;
  86. PT.ColorOverTimeG[3].TimePercent = 0.3;
  87. PT.ColorOverTimeG[3].Value = 0.3;
  88. PT.ColorOverTimeB[3].TimePercent = 0.3;
  89. PT.ColorOverTimeB[3].Value = 0.3;
  90.  
  91. PT.ColorOverTimeR[4].TimePercent = 0.5;
  92. PT.ColorOverTimeR[4].Value = 0.7;
  93. PT.ColorOverTimeG[4].TimePercent = 0.5;
  94. PT.ColorOverTimeG[4].Value = 0.7;
  95. PT.ColorOverTimeB[4].TimePercent = 0.5;
  96. PT.ColorOverTimeB[4].Value = 0.7;
  97.  
  98. PT.ColorOverTimeR[5].TimePercent = 0.55;
  99. PT.ColorOverTimeR[5].Value = 0.7;
  100. PT.ColorOverTimeG[5].TimePercent = 0.55;
  101. PT.ColorOverTimeG[5].Value = 0.7;
  102. PT.ColorOverTimeB[5].TimePercent = 0.55;
  103. PT.ColorOverTimeB[5].Value = 0.7;
  104.  
  105. PT.ColorOverTimeR[6].TimePercent = 0.65;
  106. PT.ColorOverTimeR[6].Value = 0.3;
  107. PT.ColorOverTimeG[6].TimePercent = 0.65;
  108. PT.ColorOverTimeG[6].Value = 0.3;
  109. PT.ColorOverTimeB[6].TimePercent = 0.65;
  110. PT.ColorOverTimeB[6].Value = 0.3;
  111.  
  112. PT.ColorOverTimeR[7].TimePercent = 1.0;
  113. PT.ColorOverTimeR[7].Value = 0.5;
  114. PT.ColorOverTimeG[7].TimePercent = 1.0;
  115. PT.ColorOverTimeG[7].Value = 0.5;
  116. PT.ColorOverTimeB[7].TimePercent = 1.0;
  117. PT.ColorOverTimeB[7].Value = 0.5;
  118.  
  119. -- transparency over time
  120. PT.TransparencyOverTime[1].TimePercent = 0.0;
  121. PT.TransparencyOverTime[1].Value = 0.0;
  122.  
  123. PT.TransparencyOverTime[2].TimePercent = 0.3;
  124. PT.TransparencyOverTime[2].Value = 1.0;
  125.  
  126. PT.TransparencyOverTime[3].TimePercent = 0.8;
  127. PT.TransparencyOverTime[3].Value = 1.0;
  128.  
  129. PT.TransparencyOverTime[4].TimePercent = 1.0;
  130. PT.TransparencyOverTime[4].Value = 0.0;
  131.  
  132. -- size over time
  133. PT.SizeOverTime[1].TimePercent = 0.0;
  134. PT.SizeOverTime[1].Value = 1.0;
  135.  
  136. PT.SizeOverTime[2].TimePercent = 1.0;
  137. PT.SizeOverTime[2].Value = 1.0;
  138.  
  139. -- Speed over time
  140. PT.SpeedOverTime[1].TimePercent = 0.0;
  141. PT.SpeedOverTime[1].Value = 1.0;
  142.  
  143. PT.SpeedOverTime[2].TimePercent = 1.0;
  144. PT.SpeedOverTime[2].Value = 1.0;
  145.  
  146. -- Tangent Speed over time
  147. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  148. PT.TangentSpeedOverTime[1].Value = 1.5;
  149.  
  150. PT.TangentSpeedOverTime[2].TimePercent = 0.3;
  151. PT.TangentSpeedOverTime[2].Value = 0.0;
  152.  
  153. PT.TangentSpeedOverTime[3].TimePercent = 0.7;
  154. PT.TangentSpeedOverTime[3].Value = -1.5;
  155.  
  156. PT.TangentSpeedOverTime[4].TimePercent = 1.0;
  157. PT.TangentSpeedOverTime[4].Value = 0.0;
  158.  
  159.  
  160. -- GravityAcceleration over time
  161. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  162. PT.GravityAccelerationOverTime[1].Value = 0.0;
  163.  
  164. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  165. PT.GravityAccelerationOverTime[2].Value = 0.0;
  166.  
  167. -- AngleSpeed over time
  168. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  169. PT.AngleSpeedOverTime[1].Value = 1.0;
  170.  
  171. PT.AngleSpeedOverTime[2].TimePercent = 0.3;
  172. PT.AngleSpeedOverTime[2].Value = 0.0;
  173.  
  174. PT.AngleSpeedOverTime[3].TimePercent = 0.7;
  175. PT.AngleSpeedOverTime[3].Value = -1.0;
  176.  
  177. PT.AngleSpeedOverTime[4].TimePercent = 1.0;
  178. PT.AngleSpeedOverTime[4].Value = 0.0;
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201. PT = Emitter.ParticleTypesParams[2]
  202. PT.IsEmitterLocked = false
  203. PT.DrawOrder = 2
  204. PT.Material = ENMAT_SIMPLEPARTICLE
  205.  
  206.  
  207. PT.TextureName = "environment_effect_volcano_snow2.dds"
  208.  
  209. PT.ParticlesPerSecond = 100.0;
  210. PT.InitialNumberOfParticles = 0.0;
  211. PT.BaseLifeTime = 4.0;
  212. PT.BaseLifeTimeVariance = 1.0;
  213. PT.BaseSpeed = 25.0;
  214. PT.BaseSpeedVariance = 1.1;
  215.  
  216. PT.TangentSpeed = 5.0;
  217. PT.TangentSpeedVariance = 1.0;
  218. local vzbzd9 = D3DXVECTOR3:new(1.0,0.0,0.0)
  219. PT.TangentDirection = vzbzd9
  220. vzbzd9:delete()
  221. PT.TangentAngleMin = 0.0;
  222. PT.TangentAngleMax = 6.28;
  223. PT.IsTangentDependOnBase = false;
  224.  
  225. PT.BaseAngle = 3.0;
  226. PT.BaseAngleVariance = 2.0;
  227. PT.BaseAngleSpeed = 0.5;
  228. PT.BaseAngleSpeedVariance = 1.0;
  229. PT.BaseAngleSpeedDirection = 0;
  230. local vzbzd10 = D3DXVECTOR3:new(0.0,-1.0,0.0)
  231. PT.BaseDirection = vzbzd10
  232. vzbzd10:delete()
  233. local vzbzd11 = D3DXVECTOR3:new(0.0,0.0,0.0)
  234. PT.BaseDirectionVariance = vzbzd11
  235. vzbzd11:delete()
  236. local vzbzd12 = D3DXVECTOR3:new(0,-50,0)
  237. PT.BasePosition = vzbzd12
  238. vzbzd12:delete()
  239. local vzbzd13 = D3DXVECTOR3:new(100,50,100)
  240. PT.BasePositionVariance = vzbzd13
  241. vzbzd13:delete()
  242. PT.BaseSize = 3.0;
  243. PT.BaseSizeVariance = 1.0;
  244. PT.DirectionRelativeness = ENREL_WORLD
  245.  
  246. -- color over time
  247. PT.ColorOverTimeR[1].TimePercent = 0.0;
  248. PT.ColorOverTimeR[1].Value = 0.5;
  249. PT.ColorOverTimeG[1].TimePercent = 0.0;
  250. PT.ColorOverTimeG[1].Value = 0.5;
  251. PT.ColorOverTimeB[1].TimePercent = 0.0;
  252. PT.ColorOverTimeB[1].Value = 0.5;
  253.  
  254. PT.ColorOverTimeR[2].TimePercent = 1.0;
  255. PT.ColorOverTimeR[2].Value = 0.5;
  256. PT.ColorOverTimeG[2].TimePercent = 1.0;
  257. PT.ColorOverTimeG[2].Value = 0.5;
  258. PT.ColorOverTimeB[2].TimePercent = 1.0;
  259. PT.ColorOverTimeB[2].Value = 0.5;
  260.  
  261. -- transparency over time
  262. PT.TransparencyOverTime[1].TimePercent = 0.0;
  263. PT.TransparencyOverTime[1].Value = 0.0;
  264.  
  265. PT.TransparencyOverTime[2].TimePercent = 0.3;
  266. PT.TransparencyOverTime[2].Value = 0.3;
  267.  
  268. PT.TransparencyOverTime[3].TimePercent = 0.8;
  269. PT.TransparencyOverTime[3].Value = 0.3;
  270.  
  271. PT.TransparencyOverTime[4].TimePercent = 1.0;
  272. PT.TransparencyOverTime[4].Value = 0.0;
  273.  
  274. -- size over time
  275. PT.SizeOverTime[1].TimePercent = 0.0;
  276. PT.SizeOverTime[1].Value = 1.0;
  277.  
  278. PT.SizeOverTime[2].TimePercent = 1.0;
  279. PT.SizeOverTime[2].Value = 1.0;
  280.  
  281. -- Speed over time
  282. PT.SpeedOverTime[1].TimePercent = 0.0;
  283. PT.SpeedOverTime[1].Value = 1.0;
  284.  
  285. PT.SpeedOverTime[2].TimePercent = 1.0;
  286. PT.SpeedOverTime[2].Value = 1.0;
  287.  
  288. -- Tangent Speed over time
  289. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  290. PT.TangentSpeedOverTime[1].Value = 1.5;
  291.  
  292. PT.TangentSpeedOverTime[2].TimePercent = 0.3;
  293. PT.TangentSpeedOverTime[2].Value = 0.0;
  294.  
  295. PT.TangentSpeedOverTime[3].TimePercent = 0.7;
  296. PT.TangentSpeedOverTime[3].Value = -1.5;
  297.  
  298. PT.TangentSpeedOverTime[4].TimePercent = 1.0;
  299. PT.TangentSpeedOverTime[4].Value = 0.0;
  300.  
  301.  
  302. -- GravityAcceleration over time
  303. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  304. PT.GravityAccelerationOverTime[1].Value = 0.0;
  305.  
  306. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  307. PT.GravityAccelerationOverTime[2].Value = 0.0;
  308.  
  309. -- AngleSpeed over time
  310. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  311. PT.AngleSpeedOverTime[1].Value = 1.0;
  312.  
  313. PT.AngleSpeedOverTime[2].TimePercent = 0.3;
  314. PT.AngleSpeedOverTime[2].Value = 0.0;
  315.  
  316. PT.AngleSpeedOverTime[3].TimePercent = 0.7;
  317. PT.AngleSpeedOverTime[3].Value = -1.0;
  318.  
  319. PT.AngleSpeedOverTime[4].TimePercent = 1.0;
  320. PT.AngleSpeedOverTime[4].Value = 0.0;
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342. PT = Emitter.ParticleTypesParams[3]
  343. PT.IsEmitterLocked = false
  344. PT.DrawOrder = 1
  345. PT.Material = ENMAT_PARTICLE_LIGHT
  346.  
  347.  
  348. PT.TextureName = "environment_effect_volcano_snow3.dds"
  349.  
  350. PT.ParticlesPerSecond = 100.0;
  351. PT.InitialNumberOfParticles = 0.0;
  352. PT.BaseLifeTime = 3.0;
  353. PT.BaseLifeTimeVariance = 0.5;
  354. PT.BaseSpeed = 15.0;
  355. PT.BaseSpeedVariance = 0.8;
  356.  
  357. PT.TangentSpeed = 5.0;
  358. PT.TangentSpeedVariance = 1.0;
  359. local vzbzd14 = D3DXVECTOR3:new(1.0,0.0,0.0)
  360. PT.TangentDirection = vzbzd14
  361. vzbzd14:delete()
  362. PT.TangentAngleMin = 0.0;
  363. PT.TangentAngleMax = 6.28;
  364. PT.IsTangentDependOnBase = false;
  365.  
  366. PT.BaseAngle = 3.0;
  367. PT.BaseAngleVariance = 2.0;
  368. PT.BaseAngleSpeed = 0.5;
  369. PT.BaseAngleSpeedVariance = 1.0;
  370. PT.BaseAngleSpeedDirection = 0;
  371. local vzbzd15 = D3DXVECTOR3:new(0.0,-1.0,0.0)
  372. PT.BaseDirection = vzbzd15
  373. vzbzd15:delete()
  374. local vzbzd16 = D3DXVECTOR3:new(0.0,0.0,0.0)
  375. PT.BaseDirectionVariance = vzbzd16
  376. vzbzd16:delete()
  377. local vzbzd17 = D3DXVECTOR3:new(0,-50,0)
  378. PT.BasePosition = vzbzd17
  379. vzbzd17:delete()
  380. local vzbzd18 = D3DXVECTOR3:new(375,50,375)
  381. PT.BasePositionVariance = vzbzd18
  382. vzbzd18:delete()
  383. PT.BaseSize = 1.8;
  384. PT.BaseSizeVariance = 0.1;
  385. PT.DirectionRelativeness = ENREL_WORLD
  386.  
  387. -- color over time
  388. PT.ColorOverTimeR[1].TimePercent = 0.0;
  389. PT.ColorOverTimeR[1].Value = 0.5;
  390. PT.ColorOverTimeG[1].TimePercent = 0.0;
  391. PT.ColorOverTimeG[1].Value = 0.5;
  392. PT.ColorOverTimeB[1].TimePercent = 0.0;
  393. PT.ColorOverTimeB[1].Value = 0.5;
  394.  
  395. PT.ColorOverTimeR[2].TimePercent = 1.0;
  396. PT.ColorOverTimeR[2].Value = 0.5;
  397. PT.ColorOverTimeG[2].TimePercent = 1.0;
  398. PT.ColorOverTimeG[2].Value = 0.5;
  399. PT.ColorOverTimeB[2].TimePercent = 1.0;
  400. PT.ColorOverTimeB[2].Value = 0.5;
  401.  
  402. -- transparency over time
  403. PT.TransparencyOverTime[1].TimePercent = 0.0;
  404. PT.TransparencyOverTime[1].Value = 0.0;
  405.  
  406. PT.TransparencyOverTime[2].TimePercent = 0.3;
  407. PT.TransparencyOverTime[2].Value = 1.0;
  408.  
  409. PT.TransparencyOverTime[3].TimePercent = 0.8;
  410. PT.TransparencyOverTime[3].Value = 1.0;
  411.  
  412. PT.TransparencyOverTime[4].TimePercent = 1.0;
  413. PT.TransparencyOverTime[4].Value = 0.0;
  414.  
  415. -- size over time
  416. PT.SizeOverTime[1].TimePercent = 0.0;
  417. PT.SizeOverTime[1].Value = 1.0;
  418.  
  419. PT.SizeOverTime[2].TimePercent = 1.0;
  420. PT.SizeOverTime[2].Value = 1.0;
  421.  
  422. -- Speed over time
  423. PT.SpeedOverTime[1].TimePercent = 0.0;
  424. PT.SpeedOverTime[1].Value = 1.0;
  425.  
  426. PT.SpeedOverTime[2].TimePercent = 1.0;
  427. PT.SpeedOverTime[2].Value = 1.0;
  428.  
  429. -- Tangent Speed over time
  430. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  431. PT.TangentSpeedOverTime[1].Value = 1.5;
  432.  
  433. PT.TangentSpeedOverTime[2].TimePercent = 0.3;
  434. PT.TangentSpeedOverTime[2].Value = 0.0;
  435.  
  436. PT.TangentSpeedOverTime[3].TimePercent = 0.7;
  437. PT.TangentSpeedOverTime[3].Value = -1.5;
  438.  
  439. PT.TangentSpeedOverTime[4].TimePercent = 1.0;
  440. PT.TangentSpeedOverTime[4].Value = 0.0;
  441.  
  442.  
  443. -- GravityAcceleration over time
  444. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  445. PT.GravityAccelerationOverTime[1].Value = 0.0;
  446.  
  447. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  448. PT.GravityAccelerationOverTime[2].Value = 0.0;
  449.  
  450. -- AngleSpeed over time
  451. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  452. PT.AngleSpeedOverTime[1].Value = 1.0;
  453.  
  454. PT.AngleSpeedOverTime[2].TimePercent = 0.3;
  455. PT.AngleSpeedOverTime[2].Value = 0.0;
  456.  
  457. PT.AngleSpeedOverTime[3].TimePercent = 0.7;
  458. PT.AngleSpeedOverTime[3].Value = -1.0;
  459.  
  460. PT.AngleSpeedOverTime[4].TimePercent = 1.0;
  461. PT.AngleSpeedOverTime[4].Value = 0.0;
  462.  
  463.  
  464.  
  465.